require "import"
import "android.content.Context"
import "android.os.Vibrator"
import "android.media.ToneGenerator"
import "android.media.AudioManager"
local context = activity or service
local vibrator = context.getSystemService(Context.VIBRATOR_SERVICE)
local toneGenerator = ToneGenerator(AudioManager.STREAM_NOTIFICATION, 50)
toneGenerator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200)
toneGenerator.startTone(ToneGenerator.TONE_CDMA_EMERGENCY_RINGBACK, 75)
vibrator.vibrate(100)
text=service.getLastSpeakText()
service.copy(text)
service.asyncSpeak("Copiado")
return true